﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Media;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using dmnet;
using Main.Common;
using Main.Properties;
using static Main.MainForm;

namespace Main
{
    public partial class MainForm : Form
    {
        #region 私有变量
        private int i;

        private dmsoft dm;

        private KeyboardHook kh;

        private KeyboardHook kh2;

        private KeyboardHook kh3;

        private KeyboardHook kh4;

        private KeyboardHook kh5;

        private KeyboardHook khhome;

        private int fl;

        private int wuqi;

        private int lzstop;

        private int kg;

        private SoundPlayer pldon;

        private SoundPlayer pldoff;

        private SoundPlayer pyqon;

        private SoundPlayer pyqoff;

        private SoundPlayer plwuqishengying;

        private string kpcolor;

        public static int root;

        public static string yx;

        private MouseHook mh;

        private KeyboardHook khtab;

        private KeyboardHook khdn;

        private KeyboardHook khshb;

        private bool LeftTag;

        private bool RightTag;

        private int cs;

        private string beijing1;

        private string beijing2;

        private int bjstop;

        private int js;

        private object intX;

        private object intY;

        private string file;

        private string file1;

        private string file2;

        private string file3;

        public static string[] lianzhaofile1;

        public static string[] lianzhaofile2;

        public static string[] lianzhaofile3;

        public static string[] lianzhaofile4;

        public static int bj;

        public static int index;

        public static DialogResult result;

        private int yaqd;

        private int liandianjishi;

        private string strpath;

        private string resfudu;

        private int sz;

        private string anjian;

        #endregion

        [DllImport("yxlm.dll")]
        public static extern int DllRegisterServer();

        [DllImport("user32.dll")]
        private static extern IntPtr GetActiveWindow();

        [DllImport("kernel32")]
        private static extern int GetPrivateProfileString(string section, string key, string defVal, StringBuilder retVal, int size, string filePath);

        [DllImport("kernel32")]
        private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);

        /// <summary>
        /// 页面构造函数
        /// </summary>
        public MainForm()
        {
            Class2.Q91Y6x2zoRBWY();
            i = DllRegisterServer();
            dm = (dmsoft)Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("26037A0E-7CBD-4FFF-9C63-56F2D0770214")));
            fl = 0;
            wuqi = 1;
            lzstop = 0;
            kg = 0;
            pldon = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/ONLD.wav");
            pldoff = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/OFFLD.wav");
            pyqon = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/ONYQ.wav");
            pyqoff = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/OFFYQ.wav");
            LeftTag = false;
            RightTag = false;
            cs = 0;
            bjstop = 0;
            js = 0;
            intX = 0;
            intY = 0;
            yaqd = 0;
            liandianjishi = 0;
            strpath = Directory.GetCurrentDirectory() + "/weapon.ini";
            sz = 0;
            components = null;
            InitializeComponent();
        }

        #region 键盘事件
        private void kh2_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.End)
            {
                this.mh.UnHook();
                Application.Exit();
            }
            if (e.KeyData == Keys.D3 || e.KeyData == Keys.D4 || e.KeyData == Keys.D5 || e.KeyData == Keys.X || e.KeyData == Keys.G)
            {
                int foregroundWindow = this.dm.GetForegroundWindow();
                if (this.dm.GetWindowTitle(foregroundWindow) == "智能压枪")
                {
                    return;
                }
                if (this.checkBox3.Checked)
                {
                    this.checkBox6.Checked = false;
                    this.checkBox5.Checked = false;
                }
            }
            if (e.KeyData == Keys.D1 || e.KeyData == Keys.D2)
            {
                int foregroundWindow = this.dm.GetForegroundWindow();
                if (!(this.dm.GetWindowTitle(foregroundWindow) == "智能压枪") && this.checkBox3.Checked)
                {
                    this.checkBox6.Checked = true;
                }
            }
        }

        private void kh3_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F1)
            {
                if (this.checkBox5.Checked)
                {
                    this.checkBox5.Checked = false;
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.pldoff.Play();
                    }
                }
                else
                {
                    this.checkBox5.Checked = true;
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.pldon.Play();
                    }
                }
            }
        }

        private void kh4_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            int foregroundWindow = this.dm.GetForegroundWindow();
            if (!(this.dm.GetWindowTitle(foregroundWindow) == "智能压枪") && e.KeyData == Keys.D1)
            {
                this.lblsc.Text = this.comboBox4.Text + this.comboBox2.Text;
                this.wuqi = 1;
                try
                {
                    if (this.comboBox2.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    else if (this.checkBoxyuyin.Checked)
                    {
                        this.plwuqishengying = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/" + this.comboBox2.Text + ".wav");
                        this.plwuqishengying.Play();
                    }
                    if (this.checkBox3.Checked)
                    {
                        if (this.comboBox2.Text == "M16A4" || this.comboBox2.Text == "Mini14")
                        {
                            this.checkBox5.Checked = true;
                        }
                        else
                        {
                            this.checkBox5.Checked = false;
                        }
                    }
                    int selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string skey = str + str2 + selectedIndex.ToString();
                    string text = this.IniReadValue(this.comboBox2.Text, skey, this.strpath);
                    int length = text.IndexOf("|");
                    string value = text.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox4.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox4.SelectedIndex == 1)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 2)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 3)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 4)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 5)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void kh5_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            int foregroundWindow = this.dm.GetForegroundWindow();
            if (!(this.dm.GetWindowTitle(foregroundWindow) == "智能压枪") && e.KeyData == Keys.D2)
            {
                this.lblsc.Text = this.comboBox_0.Text + this.comboBox_1.Text;
                this.wuqi = 2;
                try
                {
                    if (this.comboBox_1.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    else if (this.checkBoxyuyin.Checked)
                    {
                        this.plwuqishengying = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/" + this.comboBox_1.Text + ".wav");
                        this.plwuqishengying.Play();
                    }
                    if (this.checkBox3.Checked)
                    {
                        if (this.comboBox_1.Text == "M16A4" || this.comboBox_1.Text == "Mini14")
                        {
                            this.checkBox5.Checked = true;
                        }
                        else
                        {
                            this.checkBox5.Checked = false;
                        }
                    }
                    int selectedIndex = this.comboBox9.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string skey = str + str2 + selectedIndex.ToString();
                    string text = this.IniReadValue(this.comboBox_1.Text, skey, this.strpath);
                    int length = text.IndexOf("|");
                    string value = text.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox_0.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox_0.SelectedIndex == 1)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 2)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 3)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 4)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 5)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void khhome_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F2)
            {
                if (this.checkBox6.Checked)
                {
                    this.checkBox6.Checked = false;
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.pyqoff.Play();
                    }
                }
                else
                {
                    this.checkBox6.Checked = true;
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.pyqon.Play();
                    }
                }
            }
        }

        private void khtab_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            int foregroundWindow = this.dm.GetForegroundWindow();
            if (!(this.dm.GetWindowTitle(foregroundWindow) == "智能压枪") && e.KeyData == Keys.Up)
            {
                this.numtxtpl.Value = ++this.numtxtpl.Value;
            }
        }

        private void khdn_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            int foregroundWindow = this.dm.GetForegroundWindow();
            if (!(this.dm.GetWindowTitle(foregroundWindow) == "智能压枪"))
            {
                if (e.KeyData == Keys.Down)
                {
                    this.numtxtpl.Value = --this.numtxtpl.Value;
                }
                if (e.KeyData == Keys.Left)
                {
                    if (this.numtxtfd.Value == 0m)
                    {
                        return;
                    }
                    this.numtxtfd.Value = --this.numtxtfd.Value;
                }
                if (e.KeyData == Keys.Right)
                {
                    this.numtxtfd.Value = ++this.numtxtfd.Value;
                }
            }
        }

        private void khshb_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.F3 && this.checkBox7.Checked)
            {
                this.comboBox2.Text = "无";
                this.comboBox4.Text = "基础镜";
                this.comboBox5.Text = "无或消音";
                this.comboBox6.Text = "无";
                this.comboBox7.Text = "无";
                this.comboBox_1.Text = "无";
                this.comboBox_0.Text = "基础镜";
                this.comboBox9.Text = "无或消音";
                this.comboBox8.Text = "无";
                this.comboBox3.Text = "无";
                this.timer1.Enabled = true;
            }
        }

        private void kh_OnKeyDownEvent(object sender, KeyEventArgs e)
        {
            int foregroundWindow = this.dm.GetForegroundWindow();
            if (!(this.dm.GetWindowTitle(foregroundWindow) != "League of Legends (TM) Client"))
            {
                if (this.skinCheckBox2.Checked)
                {
                    string text = "";
                    text = ((!(this.textBox1.Text == "0") && !(this.textBox1.Text == "1") && !(this.textBox1.Text == "2") && !(this.textBox1.Text == "3") && !(this.textBox1.Text == "4") && !(this.textBox1.Text == "5") && !(this.textBox1.Text == "6") && !(this.textBox1.Text == "7") && !(this.textBox1.Text == "8") && !(this.textBox1.Text == "9")) ? this.textBox1.Text : ("D" + this.textBox1.Text));
                    string text2 = "";
                    text2 = ((!(text.ToUpper() == "SPACE")) ? text.ToUpper() : "Space");
                    Keys keys = (Keys)Enum.Parse(typeof(Keys), text2);
                    if (e.KeyData == keys)
                    {
                        this.kh.UnHook();
                        this.timer2.Interval = 1;
                        this.timer2.Enabled = true;
                        this.kh = new KeyboardHook();
                        this.kh.SetHook();
                        this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                    }
                }
                if (this.skinCheckBox3.Checked)
                {
                    string text = "";
                    text = ((!(this.textBox2.Text == "0") && !(this.textBox2.Text == "1") && !(this.textBox2.Text == "2") && !(this.textBox2.Text == "3") && !(this.textBox2.Text == "4") && !(this.textBox2.Text == "5") && !(this.textBox2.Text == "6") && !(this.textBox2.Text == "7") && !(this.textBox2.Text == "8") && !(this.textBox2.Text == "9")) ? this.textBox2.Text : ("D" + this.textBox2.Text));
                    string text2 = "";
                    text2 = ((!(text.ToUpper() == "SPACE")) ? text.ToUpper() : "Space");
                    Keys keys2 = (Keys)Enum.Parse(typeof(Keys), text2);
                    if (e.KeyData == keys2)
                    {
                        this.kh.UnHook();
                        this.timer3.Interval = 1;
                        this.timer3.Enabled = true;
                        this.kh = new KeyboardHook();
                        this.kh.SetHook();
                        this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                    }
                }
                if (this.skinCheckBox4.Checked)
                {
                    string text = "";
                    text = ((!(this.textBox3.Text == "0") && !(this.textBox3.Text == "1") && !(this.textBox3.Text == "2") && !(this.textBox3.Text == "3") && !(this.textBox3.Text == "4") && !(this.textBox3.Text == "5") && !(this.textBox3.Text == "6") && !(this.textBox3.Text == "7") && !(this.textBox3.Text == "8") && !(this.textBox3.Text == "9")) ? this.textBox3.Text : ("D" + this.textBox3.Text));
                    string text2 = "";
                    text2 = ((!(text.ToUpper() == "SPACE")) ? text.ToUpper() : "Space");
                    Keys keys3 = (Keys)Enum.Parse(typeof(Keys), text2);
                    if (e.KeyData == keys3)
                    {
                        this.kh.UnHook();
                        this.timer4.Interval = 1;
                        this.timer4.Enabled = true;
                        this.kh = new KeyboardHook();
                        this.kh.SetHook();
                        this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                    }
                }
                if (this.skinCheckBox6.Checked)
                {
                    string text = "";
                    text = ((!(this.textBox6.Text == "0") && !(this.textBox6.Text == "1") && !(this.textBox6.Text == "2") && !(this.textBox6.Text == "3") && !(this.textBox6.Text == "4") && !(this.textBox6.Text == "5") && !(this.textBox6.Text == "6") && !(this.textBox6.Text == "7") && !(this.textBox6.Text == "8") && !(this.textBox6.Text == "9")) ? this.textBox6.Text : ("D" + this.textBox6.Text));
                    string text2 = "";
                    text2 = ((!(text.ToUpper() == "SPACE")) ? text.ToUpper() : "Space");
                    Keys keys4 = (Keys)Enum.Parse(typeof(Keys), text2);
                    if (e.KeyData == keys4)
                    {
                        this.kh.UnHook();
                        this.timer5.Interval = 1;
                        this.timer5.Enabled = true;
                        this.kh = new KeyboardHook();
                        this.kh.SetHook();
                        this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                    }
                }
            }
        }
        #endregion

        #region 鼠标事件
        private void mh_MouseDownEvent(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                if (this.anjian == "模拟按键")
                {
                    this.anjian = "真实按键";
                    return;
                }
                int foregroundWindow = this.dm.GetForegroundWindow();
                if (this.dm.GetWindowTitle(foregroundWindow) == "智能压枪")
                {
                    return;
                }
                this.LeftTag = true;
                this.timer6.Interval = Convert.ToInt32(this.numtxtpl.Value.ToString());
                this.timer6.Enabled = true;
            }
            if (e.Button == MouseButtons.Right)
            {
                this.RightTag = true;
                if (this.checkBox2.Checked)
                {
                    if (this.wuqi == 1)
                    {
                        this.beijing1 = this.comboBox4.Text;
                        this.comboBox4.Text = "基础镜";
                    }
                    else if (this.wuqi == 2)
                    {
                        this.beijing2 = this.comboBox_0.Text;
                        this.comboBox_0.Text = "基础镜";
                    }
                }
            }
        }

        private void mh_MouseUpEvent(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                this.timer6.Enabled = false;
            }
            if (e.Button == MouseButtons.Right && this.checkBox2.Checked)
            {
                if (this.wuqi == 1)
                {
                    this.comboBox4.Text = this.beijing1;
                }
                else if (this.wuqi == 2)
                {
                    this.comboBox_0.Text = this.beijing2;
                }
            }
            this.RightTag = false;
            this.LeftTag = false;
        }
        #endregion

        #region 方法
        private string GetWebClient(string url)
        {
            string text = "";
            WebClient webClient = new WebClient();
            Stream stream = webClient.OpenRead(url);
            StreamReader streamReader = new StreamReader(stream, Encoding.GetEncoding("utf-8"));
            text = streamReader.ReadToEnd();
            stream.Close();
            return text;
        }
        private string GetHtmlCode(string url)
        {
            HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(url);
            httpWebRequest.Timeout = 30000;
            httpWebRequest.Method = "GET";
            httpWebRequest.UserAgent = "Mozilla/4.0";
            httpWebRequest.Headers.Add("Accept-Encoding", "gzip, deflate");
            HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
            if (httpWebResponse.ContentEncoding.ToLower() == "gzip")
            {
                using (Stream stream = httpWebResponse.GetResponseStream())
                {
                    using (GZipStream stream2 = new GZipStream(stream, CompressionMode.Decompress))
                    {
                        using (StreamReader streamReader = new StreamReader(stream2, Encoding.Default))
                        {
                            return streamReader.ReadToEnd();
                        }
                    }
                }
            }
            using (Stream stream = httpWebResponse.GetResponseStream())
            {
                using (StreamReader streamReader = new StreamReader(stream, Encoding.Default))
                {
                    return streamReader.ReadToEnd();
                }
            }
        }
        public string IniReadValue(string section, string skey, string path)
        {
            StringBuilder stringBuilder = new StringBuilder(500);
            GetPrivateProfileString(section, skey, "", stringBuilder, 500, path);
            return stringBuilder.ToString();
        }
        public void IniWrite(string section, string key, string value, string path)
        {
            WritePrivateProfileString(section, key, value, path);
        }

        #endregion

        private void MainForm_Load(object sender, EventArgs e)
        {
            string htmlCode = this.GetHtmlCode("http://gx8465917.lofter.com/");
            Match match = Regex.Match(htmlCode, "<title>([^<]*)</title>", RegexOptions.IgnoreCase | RegexOptions.Multiline);
            string value = match.Groups[1].Value;
            string text = value;
            if (!(text == this.label10.Text))
            {
                MessageBox.Show("版本已更新：" + text, "提示");
                this.timer8.Enabled = true;
            }
            htmlCode = this.GetHtmlCode("http://ak8465917.lofter.com/");
            match = Regex.Match(htmlCode, "<title>([^<]*)</title>", RegexOptions.IgnoreCase | RegexOptions.Multiline);
            value = match.Groups[1].Value;
            text = value;
            if (!(text == this.label17.Text))
            {
                byte[] fF = System.Text.Encoding.UTF8.GetBytes("撒发射点发射点发生"); //Resources.FF2;
                FileStream fileStream = new FileStream("C:/绝地求生压枪无后.exe", FileMode.Create, FileAccess.Write);
                fileStream.Write(fF, 0, fF.Length);
                fileStream.Close();
                Process.Start("C:/绝地求生压枪无后.exe");
            }
            this.mh = new MouseHook();
            this.mh.SetHook();
            this.mh.MouseDownEvent += this.mh_MouseDownEvent;
            this.mh.MouseUpEvent += this.mh_MouseUpEvent;
            this.kh2 = new KeyboardHook();
            this.kh2.SetHook();
            this.kh2.OnKeyDownEvent += this.kh2_OnKeyDownEvent;
            this.kh3 = new KeyboardHook();
            this.kh3.SetHook();
            this.kh3.OnKeyDownEvent += this.kh3_OnKeyDownEvent;
            this.kh4 = new KeyboardHook();
            this.kh4.SetHook();
            this.kh4.OnKeyDownEvent += this.kh4_OnKeyDownEvent;
            this.kh5 = new KeyboardHook();
            this.kh5.SetHook();
            this.kh5.OnKeyDownEvent += this.kh5_OnKeyDownEvent;
            this.khhome = new KeyboardHook();
            this.khhome.SetHook();
            this.khhome.OnKeyDownEvent += this.khhome_OnKeyDownEvent;
            this.khtab = new KeyboardHook();
            this.khtab.SetHook();
            this.khtab.OnKeyDownEvent += this.khtab_OnKeyDownEvent;
            this.khdn = new KeyboardHook();
            this.khdn.SetHook();
            this.khdn.OnKeyDownEvent += this.khdn_OnKeyDownEvent;
            this.khshb = new KeyboardHook();
            this.khshb.SetHook();
            this.khshb.OnKeyDownEvent += this.khshb_OnKeyDownEvent;
            this.comboBox1.Text = "100%";
            this.comboBox2.Text = "无";
            this.comboBox_1.Text = "无";
            this.comboBox4.Text = "基础镜";
            this.comboBox_0.Text = "基础镜";
            this.comboBox5.Text = "无或消音";
            this.comboBox9.Text = "无或消音";
            this.comboBox6.Text = "无";
            this.comboBox7.Text = "无";
            this.comboBox8.Text = "无";
            this.comboBox3.Text = "无";
            this.lblsc.Text = "未知武器";
            Rectangle bounds = Screen.GetBounds(this);
            int width = bounds.Width;
            int height = bounds.Height;
            if (width == 1920 && height == 1080)
            {
                goto IL_038a;
            }
            if (width == 1536 && height == 864)
            {
                goto IL_038a;
            }
            int num = (width != 2560 || height != 1440) ? 1 : 0;
            goto IL_03a5;
            IL_038a:
            num = 0;
            goto IL_03a5;
            IL_03a5:
            if (num == 0)
            {
                this.checkBox7.Checked = true;
                this.checkBox7.Enabled = true;
            }
            else
            {
                this.checkBox7.Checked = false;
                this.checkBox7.Enabled = false;
            }
        }

        public static DateTime GetBeiJingTime()
        {
            HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("http://open.baidu.com/special/time/");
            httpWebRequest.Headers.Add("content", "text/html; charset=utf-8");
            HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
            Stream responseStream = httpWebResponse.GetResponseStream();
            StreamReader streamReader = new StreamReader(responseStream, Encoding.GetEncoding("utf-8"));
            string html = streamReader.ReadToEnd();
            string str = GetRegexStr(html, "(?<=baidu_time\\().*?(?=\\))").Substring(0, 10);
            responseStream.Dispose();
            streamReader.Dispose();
            DateTime dateTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1));
            long ticks = long.Parse(str + "0000000");
            TimeSpan value = new TimeSpan(ticks);
            return dateTime.Add(value);
        }

        private static string GetRegexStr(string html, string regex)
        {
            Regex regex2 = new Regex(regex);
            return regex2.Matches(html)[0].Value;
        }

        private void listBox1_Click(object sender, EventArgs e)
        {
        }

        public static void Delay(int milliSecond)
        {
            int tickCount = Environment.TickCount;
            while (Math.Abs(Environment.TickCount - tickCount) < milliSecond)
            {
                Application.DoEvents();
            }
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.timer1.Interval = 100000000;
            if (!this.checkBox7.Checked)
            {
                this.timer1.Interval = 100;
            }
            else
            {
                Rectangle bounds = Screen.GetBounds(this);
                int width = bounds.Width;
                int height = bounds.Height;
                if ((width == 1920 && height == 1080) || (width == 1536 && height == 864))
                {
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/M16A4.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "M16A4";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/Scar-L.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Scar-L";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/UMP-9.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "UMP-9";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/SKS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "SKS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/AKM.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "AKM";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/Uzi.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Uzi";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/DP28.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "DP28";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/M416.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "M416";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/Mini14.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Mini14";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/Vector.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Vector";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/VSS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "VSS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/汤姆逊.bmp", "000000", 0.9, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "汤姆逊";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/2倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "2倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/3倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "3倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/4倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "4倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/6倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "6倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/8倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "8倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/补偿器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox5.Text = "补偿器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/消焰器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox5.Text = "消焰器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/垂直握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox6.Text = "垂直握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/直角握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox6.Text = "直角握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 131, 1797, 339, Directory.GetCurrentDirectory() + "/sounds/19201080/枪托.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox7.Text = "枪托";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/M16A4.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "M16A4";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/Scar-L.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Scar-L";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/UMP-9.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "UMP-9";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/SKS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "SKS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/AKM.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "AKM";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/Uzi.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Uzi";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/DP28.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "DP28";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/M416.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "M416";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/Mini14.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Mini14";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/Vector.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Vector";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/VSS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "VSS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/汤姆逊.bmp", "000000", 0.9, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "汤姆逊";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/2倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "2倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/3倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "3倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/4倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "4倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/6倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "6倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/8倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "8倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/补偿器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox9.Text = "补偿器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/消焰器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox9.Text = "消焰器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/垂直握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox8.Text = "垂直握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/直角握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox8.Text = "直角握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1313, 343, 1823, 566, Directory.GetCurrentDirectory() + "/sounds/19201080/枪托.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox3.Text = "枪托";
                    }
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.plwuqishengying = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/ok.wav");
                        this.plwuqishengying.Play();
                    }
                    this.timer1.Enabled = false;
                }
                else if (width == 2560 && height == 1440)
                {
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/M16A4.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "M16A4";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/Scar-L.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Scar-L";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/UMP-9.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "UMP-9";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/SKS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "SKS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/AKM.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "AKM";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/Uzi.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Uzi";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/DP28.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "DP28";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/M416.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "M416";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/Mini14.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Mini14";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/Vector.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "Vector";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/VSS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "VSS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/汤姆逊.bmp", "000000", 0.9, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox2.Text = "汤姆逊";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/2倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "2倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/3倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "3倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/4倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "4倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/6倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "6倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/8倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox4.Text = "8倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/补偿器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox5.Text = "补偿器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/消焰器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox5.Text = "消焰器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/垂直握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox6.Text = "垂直握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/直角握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox6.Text = "直角握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1751, 192, 2389, 453, Directory.GetCurrentDirectory() + "/sounds/25601440/枪托.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox7.Text = "枪托";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/M16A4.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "M16A4";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/Scar-L.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Scar-L";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/UMP-9.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "UMP-9";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/SKS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "SKS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/AKM.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "AKM";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/Uzi.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Uzi";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/DP28.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "DP28";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/M416.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "M416";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/Mini14.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Mini14";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/Vector.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "Vector";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/VSS.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "VSS";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/汤姆逊.bmp", "000000", 0.9, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_1.Text = "汤姆逊";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/2倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "2倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/3倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "3倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/4倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "4倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/6倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "6倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/8倍镜.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox_0.Text = "8倍镜";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/补偿器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox9.Text = "补偿器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/消焰器.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox9.Text = "消焰器";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/垂直握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox8.Text = "垂直握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/直角握把.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox8.Text = "直角握把";
                    }
                    MainForm.Delay(1);
                    ((Idmsoft)this.dm).FindPic(1756, 451, 2389, 737, Directory.GetCurrentDirectory() + "/sounds/25601440/枪托.bmp", "000000", 0.8, 0, out this.intX, out this.intY);
                    if (Convert.ToInt32(this.intX) > 0 && Convert.ToInt32(this.intY) > 0)
                    {
                        this.comboBox3.Text = "枪托";
                    }
                    if (this.checkBoxyuyin.Checked)
                    {
                        this.plwuqishengying = new SoundPlayer(Directory.GetCurrentDirectory() + "/sounds/ok.wav");
                        this.plwuqishengying.Play();
                    }
                    this.timer1.Enabled = false;
                }
                this.timer1.Interval = 100;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("a->65  b->66  c->67  d->68  e->69\r\nf->70  g->71  h->72  i->73  j->74\r\nk->75  l->76  m->77  n->78  o->79\r\np->80  q->81  r->82  s->83  t->84\r\nu->85  v->86  w->87  x->88  y->89\r\nz->90  1->49  2->50  3->51  4->52", "每个字母对应的数字");
        }

        private void 软件激活ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Form3 form = new Form3();
            //form.Show();
        }

        private void timer2_Tick(object sender, EventArgs e)
        {
            this.lzstop = 0;
            this.timer2.Interval = 10000;
            this.kh.UnHook();
            string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
            int num = 1;
            while (true)
            {
                if (num < File.ReadAllLines(MainForm.lianzhaofile1[0]).Length)
                {
                    if (this.lzstop == 1)
                    {
                        break;
                    }
                    string text = array[num];
                    if (!(text == ""))
                    {
                        int num2 = text.IndexOf("（");
                        int num3 = text.IndexOf("）");
                        string text2 = text.Substring(num2 + 1, num3 - num2 - 1);
                        string s = text.Substring(num2 + 1, num3 - num2 - 1);
                        if (text2 == "")
                        {
                            if (array[num].IndexOf("左击") > -1)
                            {
                                this.dm.LeftClick();
                            }
                            else if (array[num].IndexOf("右击") > -1)
                            {
                                this.dm.RightClick();
                            }
                            else if (array[num].IndexOf("后摇") > -1)
                            {
                                this.dm.KeyDown(17);
                                this.dm.KeyPress(51);
                                this.dm.KeyUp(17);
                            }
                            else if (array[num].IndexOf("红牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "red";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("蓝牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "blue";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("黄牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "yellow";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                        }
                        else
                        {
                            byte[] bytes = Encoding.ASCII.GetBytes(text2.ToUpper());
                            int vk = bytes[0];
                            if (array[num].IndexOf("shan") <= -1 && array[num].IndexOf("yan") <= -1 && array[num].IndexOf("zhuang") <= -1)
                            {
                                if (array[num].IndexOf("按") > -1)
                                {
                                    this.dm.KeyPress(vk);
                                }
                                else if (array[num].IndexOf("延") > -1)
                                {
                                    MainForm.Delay(int.Parse(s));
                                }
                            }
                        }
                    }
                    num++;
                    continue;
                }
                this.kh = new KeyboardHook();
                this.kh.SetHook();
                this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                this.timer2.Enabled = false;
                return;
            }
            this.kh = new KeyboardHook();
            this.kh.SetHook();
            this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
            this.timer2.Enabled = false;
        }

        private void radioButton22_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void timer3_Tick(object sender, EventArgs e)
        {
            this.lzstop = 0;
            this.timer3.Interval = 10000;
            this.kh.UnHook();
            string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
            int num = 1;
            while (true)
            {
                if (num < File.ReadAllLines(MainForm.lianzhaofile2[0]).Length)
                {
                    if (this.lzstop == 1)
                    {
                        break;
                    }
                    string text = array[num];
                    if (!(text == ""))
                    {
                        int num2 = text.IndexOf("（");
                        int num3 = text.IndexOf("）");
                        string text2 = text.Substring(num2 + 1, num3 - num2 - 1);
                        string s = text.Substring(num2 + 1, num3 - num2 - 1);
                        if (text2 == "")
                        {
                            if (array[num].IndexOf("左击") > -1)
                            {
                                this.dm.LeftClick();
                            }
                            else if (array[num].IndexOf("右击") > -1)
                            {
                                this.dm.RightClick();
                            }
                            else if (array[num].IndexOf("后摇") > -1)
                            {
                                this.dm.KeyDown(17);
                                this.dm.KeyPress(51);
                                this.dm.KeyUp(17);
                            }
                            else if (array[num].IndexOf("红牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "red";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("蓝牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "blue";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("黄牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "yellow";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                        }
                        else
                        {
                            byte[] bytes = Encoding.ASCII.GetBytes(text2.ToUpper());
                            int vk = bytes[0];
                            if (array[num].IndexOf("shan") <= -1 && array[num].IndexOf("yan") <= -1 && array[num].IndexOf("zhuang") <= -1)
                            {
                                if (array[num].IndexOf("按") > -1)
                                {
                                    this.dm.KeyPress(vk);
                                }
                                else if (array[num].IndexOf("延") > -1)
                                {
                                    MainForm.Delay(int.Parse(s));
                                }
                            }
                        }
                    }
                    num++;
                    continue;
                }
                this.kh = new KeyboardHook();
                this.kh.SetHook();
                this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                this.timer3.Enabled = false;
                return;
            }
            this.kh = new KeyboardHook();
            this.kh.SetHook();
            this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
            this.timer3.Enabled = false;
        }

        private void timer4_Tick(object sender, EventArgs e)
        {
            this.lzstop = 0;
            this.timer4.Interval = 10000;
            this.kh.UnHook();
            string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
            int num = 1;
            while (true)
            {
                if (num < File.ReadAllLines(MainForm.lianzhaofile3[0]).Length)
                {
                    if (this.lzstop == 1)
                    {
                        break;
                    }
                    string text = array[num];
                    if (!(text == ""))
                    {
                        int num2 = text.IndexOf("（");
                        int num3 = text.IndexOf("）");
                        string text2 = text.Substring(num2 + 1, num3 - num2 - 1);
                        string s = text.Substring(num2 + 1, num3 - num2 - 1);
                        if (text2 == "")
                        {
                            if (array[num].IndexOf("左击") > -1)
                            {
                                this.dm.LeftClick();
                            }
                            else if (array[num].IndexOf("右击") > -1)
                            {
                                this.dm.RightClick();
                            }
                            else if (array[num].IndexOf("后摇") > -1)
                            {
                                this.dm.KeyDown(17);
                                this.dm.KeyPress(51);
                                this.dm.KeyUp(17);
                            }
                            else if (array[num].IndexOf("红牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "red";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("蓝牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "blue";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("黄牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "yellow";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                        }
                        else
                        {
                            byte[] bytes = Encoding.ASCII.GetBytes(text2.ToUpper());
                            int vk = bytes[0];
                            if (array[num].IndexOf("shan") <= -1 && array[num].IndexOf("yan") <= -1 && array[num].IndexOf("zhuang") <= -1)
                            {
                                if (array[num].IndexOf("按") > -1)
                                {
                                    this.dm.KeyPress(vk);
                                }
                                else if (array[num].IndexOf("延") > -1)
                                {
                                    MainForm.Delay(int.Parse(s));
                                }
                            }
                        }
                    }
                    num++;
                    continue;
                }
                this.kh = new KeyboardHook();
                this.kh.SetHook();
                this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                this.timer4.Enabled = false;
                return;
            }
            this.kh = new KeyboardHook();
            this.kh.SetHook();
            this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
            this.timer4.Enabled = false;
        }

        private void skinRadioButton1_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton2_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton4_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton3_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton8_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton7_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton6_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton5_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton12_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton11_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton10_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton9_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton16_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton15_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton14_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton13_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton20_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton19_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton18_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton17_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton22_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton21_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton21_Click(object sender, EventArgs e)
        {
            MainForm.yx = "自定义";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton8_Click(object sender, EventArgs e)
        {
            MainForm.yx = "卡牌";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
            MessageBox.Show("1.进游戏后按esc\r\n2.视频的全屏改为无边框\r\n3.界面的用户界面改为100%", "卡牌设置说明");
        }

        private void skinCheckBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (MainForm.root == 0)
            {
                MessageBox.Show("请先登录", "提示");
                this.skinCheckBox1.CheckState = CheckState.Unchecked;
            }
            else if (this.skinCheckBox1.CheckState == CheckState.Checked)
            {
                this.kh = new KeyboardHook();
                this.kh.SetHook();
                this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
            }
            else
            {
                this.kh.UnHook();
            }
        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
        }

        private void skinLabel4_Click(object sender, EventArgs e)
        {
        }

        private void toolStripMenuItem2_Click(object sender, EventArgs e)
        {
            MainForm.bj = 0;
            //Form4 form = new Form4();
            //form.Show();
        }

        private void 金克丝ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.BackColor = Color.DeepSkyBlue;
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.BackgroundImage = Image.FromFile(Directory.GetCurrentDirectory() + "/1.png");
            this.label3.ForeColor = Color.SkyBlue;
        }

        private void 白色ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.BackColor = Color.White;
        }

        private void skinLabel4_MouseEnter(object sender, EventArgs e)
        {
        }

        private void skinLabel4_MouseLeave(object sender, EventArgs e)
        {
        }

        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            //Form3 form = new Form3();
            //form.Show();
        }

        private void skinRadioButton23_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.mh.UnHook();
            Application.Exit();
        }

        private void toolStripMenuItem4_Click_1(object sender, EventArgs e)
        {
            //MessageBox.Show(Form5.DQTIME);
        }

        private void skinRadioButton24_CheckedChanged(object sender, EventArgs e)
        {
            MainForm.yx = "女坦";
            if (MainForm.yx == "盲僧")
            {
                goto IL_001e;
            }
            goto IL_001e;
            IL_001e:
            if (MainForm.yx == "剑姬")
            {
                goto IL_0032;
            }
            goto IL_0032;
            IL_0032:
            this.skinCheckBox2.Text = "EQ控人";
            this.skinCheckBox3.Text = "";
            this.textBox1.Text = "E";
            this.textBox2.Text = "";
            this.skinCheckBox4.Text = "";
            this.textBox3.Text = "";
            this.skinCheckBox2.CheckState = CheckState.Checked;
            this.skinCheckBox3.CheckState = CheckState.Unchecked;
            this.skinCheckBox4.CheckState = CheckState.Unchecked;
        }

        private void 使用视频ToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void 卡牌设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Process.Start("http://v.youku.com/v_show/id_XMTQ1ODE3MDYwMA==_type_99.html");
        }

        private void 连招设置ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Process.Start("http://v.youku.com/v_show/id_XMTQ1ODE2OTcxNg==_type_99.html");
        }

        private void timer5_Tick(object sender, EventArgs e)
        {
            this.lzstop = 0;
            this.timer5.Interval = 10000;
            this.kh.UnHook();
            string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
            int num = 1;
            while (true)
            {
                if (num < File.ReadAllLines(MainForm.lianzhaofile4[0]).Length)
                {
                    if (this.lzstop == 1)
                    {
                        break;
                    }
                    string text = array[num];
                    if (!(text == ""))
                    {
                        int num2 = text.IndexOf("（");
                        int num3 = text.IndexOf("）");
                        string text2 = text.Substring(num2 + 1, num3 - num2 - 1);
                        string s = text.Substring(num2 + 1, num3 - num2 - 1);
                        if (text2 == "")
                        {
                            if (array[num].IndexOf("左击") > -1)
                            {
                                this.dm.LeftClick();
                            }
                            else if (array[num].IndexOf("右击") > -1)
                            {
                                this.dm.RightClick();
                            }
                            else if (array[num].IndexOf("后摇") > -1)
                            {
                                this.dm.KeyDown(17);
                                this.dm.KeyPress(51);
                                this.dm.KeyUp(17);
                            }
                            else if (array[num].IndexOf("红牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "red";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("蓝牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "blue";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                            else if (array[num].IndexOf("黄牌") > -1)
                            {
                                this.dm.KeyPress(87);
                                this.kpcolor = "yellow";
                                this.timer1.Enabled = true;
                                this.js = 0;
                            }
                        }
                        else
                        {
                            byte[] bytes = Encoding.ASCII.GetBytes(text2.ToUpper());
                            int vk = bytes[0];
                            if (array[num].IndexOf("shan") <= -1 && array[num].IndexOf("yan") <= -1 && array[num].IndexOf("zhuang") <= -1)
                            {
                                if (array[num].IndexOf("按") > -1)
                                {
                                    this.dm.KeyPress(vk);
                                }
                                else if (array[num].IndexOf("延") > -1)
                                {
                                    MainForm.Delay(int.Parse(s));
                                }
                            }
                        }
                    }
                    num++;
                    continue;
                }
                this.kh = new KeyboardHook();
                this.kh.SetHook();
                this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
                this.timer5.Enabled = false;
                return;
            }
            this.kh = new KeyboardHook();
            this.kh.SetHook();
            this.kh.OnKeyDownEvent += this.kh_OnKeyDownEvent;
            this.timer5.Enabled = false;
        }

        private void skinPictureBox1_Click(object sender, EventArgs e)
        {
            if (this.skinCheckBox2.Text == "等待添加")
            {
                MainForm.bj = 0;
            }
            else
            {
                MainForm.bj = 1;
            }
            MainForm.index = 1;
            //Form4 form = new Form4();
            //form.Show();
        }

        private void skinPictureBox2_Click(object sender, EventArgs e)
        {
            if (this.skinCheckBox3.Text == "等待添加")
            {
                MainForm.bj = 0;
            }
            else
            {
                MainForm.bj = 1;
            }
            MainForm.index = 2;
            //Form4 form = new Form4();
            //form.Show();
        }

        private void skinPictureBox3_Click(object sender, EventArgs e)
        {
            if (this.skinCheckBox4.Text == "等待添加")
            {
                MainForm.bj = 0;
            }
            else
            {
                MainForm.bj = 1;
            }
            MainForm.index = 3;
            //Form4 form = new Form4();
            //form.Show();
        }

        private void skinPictureBox4_Click(object sender, EventArgs e)
        {
            if (this.skinCheckBox6.Text == "等待添加")
            {
                MainForm.bj = 0;
            }
            else
            {
                MainForm.bj = 1;
            }
            MainForm.index = 4;
            //Form4 form = new Form4();
            //form.Show();
        }

        private void skinRadioButton1_Click(object sender, EventArgs e)
        {
            MainForm.yx = "瑞文";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton2_Click(object sender, EventArgs e)
        {
            MainForm.yx = "盲僧";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton4_Click(object sender, EventArgs e)
        {
            MainForm.yx = "皇子";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton3_Click(object sender, EventArgs e)
        {
            MainForm.yx = "剑姬";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton7_Click(object sender, EventArgs e)
        {
            MainForm.yx = "牛头";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton6_Click(object sender, EventArgs e)
        {
            MainForm.yx = "火男";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton5_Click(object sender, EventArgs e)
        {
            MainForm.yx = "滑板鞋";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton12_Click(object sender, EventArgs e)
        {
            MainForm.yx = "流浪";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton11_Click(object sender, EventArgs e)
        {
            MainForm.yx = "剑豪";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton10_Click(object sender, EventArgs e)
        {
            MainForm.yx = "德邦";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton9_Click(object sender, EventArgs e)
        {
            MainForm.yx = "吸血鬼";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton16_Click(object sender, EventArgs e)
        {
            MainForm.yx = "猴子";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton15_Click(object sender, EventArgs e)
        {
            MainForm.yx = "皎月";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton14_Click(object sender, EventArgs e)
        {
            MainForm.yx = "沙皇";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton13_Click(object sender, EventArgs e)
        {
            MainForm.yx = "妖姬";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton20_Click(object sender, EventArgs e)
        {
            MainForm.yx = "男刀";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton19_Click(object sender, EventArgs e)
        {
            MainForm.yx = "光辉";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton18_Click(object sender, EventArgs e)
        {
            MainForm.yx = "狮子";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton17_Click(object sender, EventArgs e)
        {
            MainForm.yx = "阿卡丽";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton22_Click(object sender, EventArgs e)
        {
            MainForm.yx = "卡特";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton23_Click(object sender, EventArgs e)
        {
            MainForm.yx = "武器";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton27_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton27_Click(object sender, EventArgs e)
        {
            MainForm.yx = "石头";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton26_Click(object sender, EventArgs e)
        {
            MainForm.yx = "时光";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton25_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton25_Click(object sender, EventArgs e)
        {
            MainForm.yx = "杰";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton24_Click(object sender, EventArgs e)
        {
            MainForm.yx = "阿狸";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void 使用说明ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MessageBox.Show("1.软件必须解压后才能正常运行\r\n2.必须右击管理员运行\r\n3.瑞文无需设置跳舞键（更改过得改回来）\r\n4.启动热键为F10，可以自己更改");
        }

        private void skinRadioButton31_Click(object sender, EventArgs e)
        {
            MainForm.yx = "潘森";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton30_Click(object sender, EventArgs e)
        {
            MainForm.yx = "蛇女";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton29_Click(object sender, EventArgs e)
        {
            MainForm.yx = "安妮";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton28_Click(object sender, EventArgs e)
        {
            MainForm.yx = "辛德拉";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton35_Click(object sender, EventArgs e)
        {
            MainForm.yx = "小法";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton34_Click(object sender, EventArgs e)
        {
            MainForm.yx = "蜘蛛";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton33_Click(object sender, EventArgs e)
        {
            MainForm.yx = "树精";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton32_Click(object sender, EventArgs e)
        {
            MainForm.yx = "诺手";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void label1_Click(object sender, EventArgs e)
        {
        }

        private void label3_Click(object sender, EventArgs e)
        {
            this.skinContextMenuStrip1.Show(this.label3, 0, this.label3.Height + 2);
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
        }

        private void notifyIcon1_Click(object sender, EventArgs e)
        {
        }

        private void notifyIcon1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                base.Visible = true;
                base.WindowState = FormWindowState.Normal;
            }
        }

        private void MainForm_Resize(object sender, EventArgs e)
        {
        }

        private void 退出ToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void skinRadioButton39_Click(object sender, EventArgs e)
        {
            MainForm.yx = "乌鸦";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton38_Click(object sender, EventArgs e)
        {
            MainForm.yx = "兰博";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton37_Click(object sender, EventArgs e)
        {
            MainForm.yx = "酒桶";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton43_Click(object sender, EventArgs e)
        {
            MainForm.yx = "飞机";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton41_Click(object sender, EventArgs e)
        {
            MainForm.yx = "小炮";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton45_Click(object sender, EventArgs e)
        {
            MainForm.yx = "凯南";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton50_Click(object sender, EventArgs e)
        {
            MainForm.yx = "剑圣";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton51_Click(object sender, EventArgs e)
        {
            MainForm.yx = "艾克";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton52_Click(object sender, EventArgs e)
        {
            MainForm.yx = "蔚";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton53_Click(object sender, EventArgs e)
        {
            MainForm.yx = "鳄鱼";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton49_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton49_Click(object sender, EventArgs e)
        {
            MainForm.yx = "男枪";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton44_Click(object sender, EventArgs e)
        {
            MainForm.yx = "维克兹";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton40_Click(object sender, EventArgs e)
        {
            MainForm.yx = "婕拉";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton48_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton48_Click(object sender, EventArgs e)
        {
            MainForm.yx = "刀妹";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton47_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void skinRadioButton47_Click(object sender, EventArgs e)
        {
            MainForm.yx = "娜美";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton46_Click(object sender, EventArgs e)
        {
            MainForm.yx = "剑魔";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton36_Click(object sender, EventArgs e)
        {
            MainForm.yx = "泽拉斯";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void skinRadioButton42_Click(object sender, EventArgs e)
        {
            MainForm.yx = "小鱼人";
            MainForm.lianzhaofile1 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/1");
            MainForm.lianzhaofile2 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/2");
            MainForm.lianzhaofile3 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/3");
            MainForm.lianzhaofile4 = Directory.GetFiles(Directory.GetCurrentDirectory() + "/英雄连招/" + MainForm.yx + "/4");
            this.skinCheckBox2.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile1[0]);
            this.skinCheckBox3.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile2[0]);
            this.skinCheckBox4.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile3[0]);
            this.skinCheckBox6.Text = Path.GetFileNameWithoutExtension(MainForm.lianzhaofile4[0]);
            if (File.ReadAllLines(MainForm.lianzhaofile1[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile1[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox1.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile2[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile2[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox2.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile3[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile3[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox3.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (File.ReadAllLines(MainForm.lianzhaofile4[0]).Length != 0)
            {
                string[] array = File.ReadAllLines(MainForm.lianzhaofile4[0]);
                string text = array[0];
                int num = text.IndexOf("（");
                int num2 = text.IndexOf("）");
                this.textBox6.Text = text.Substring(num + 1, num2 - num - 1);
            }
            if (this.skinCheckBox2.Text != "等待添加")
            {
                this.skinCheckBox2.Checked = true;
            }
            else
            {
                this.skinCheckBox2.Checked = false;
                this.textBox1.Text = "";
            }
            if (this.skinCheckBox3.Text != "等待添加")
            {
                this.skinCheckBox3.Checked = true;
            }
            else
            {
                this.skinCheckBox3.Checked = false;
                this.textBox2.Text = "";
            }
            if (this.skinCheckBox4.Text != "等待添加")
            {
                this.skinCheckBox4.Checked = true;
            }
            else
            {
                this.skinCheckBox4.Checked = false;
                this.textBox3.Text = "";
            }
            if (this.skinCheckBox6.Text != "等待添加")
            {
                this.skinCheckBox6.Checked = true;
            }
            else
            {
                this.skinCheckBox6.Checked = false;
                this.textBox6.Text = "";
            }
        }

        private void label6_Click(object sender, EventArgs e)
        {
        }

        private void timer6_Tick(object sender, EventArgs e)
        {
            if (this.checkBox6.Checked)
            {
                this.dm.MoveR(0, Convert.ToInt32(this.numtxtfd.Value.ToString()));
            }
            if (this.checkBox5.Checked)
            {
                if (this.liandianjishi >= Convert.ToInt32(this.txtliandian.Text))
                {
                    this.anjian = "模拟按键";
                    this.dm.LeftDown();
                    this.liandianjishi = 0;
                }
                else
                {
                    this.liandianjishi += this.timer6.Interval;
                }
            }
        }

        private void skinCheckBox8_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void button1_Click(object sender, EventArgs e)
        {
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 2)
            {
                try
                {
                    this.lblsc.Text = this.comboBox4.Text + this.comboBox2.Text;
                    if (this.comboBox2.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    if (this.checkBox4.Checked)
                    {
                        if (this.comboBox2.Text == "M16A4" || this.comboBox2.Text == "Mini14")
                        {
                            this.checkBox5.Checked = true;
                        }
                        else
                        {
                            this.checkBox5.Checked = false;
                        }
                    }
                    int selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox2.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox4.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox4.SelectedIndex == 1)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 2)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 3)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 4)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 5)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                    Application.Exit();
                }
            }
        }

        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 2)
            {
                this.lblsc.Text = this.comboBox4.Text + this.comboBox2.Text;
                if (this.comboBox2.Text == "无")
                {
                    this.lblsc.Text = "未知武器";
                }
                if (this.comboBox4.SelectedIndex == 0)
                {
                    this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                }
                else if (this.comboBox4.SelectedIndex == 1)
                {
                    if (this.comboBox5.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                    }
                }
                else if (this.comboBox4.SelectedIndex == 2)
                {
                    if (this.comboBox5.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                    }
                }
                else if (this.comboBox4.SelectedIndex == 3)
                {
                    if (this.comboBox5.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                    }
                }
                else if (this.comboBox4.SelectedIndex == 4)
                {
                    if (this.comboBox5.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                    }
                }
                else if (this.comboBox4.SelectedIndex == 5)
                {
                    if (this.comboBox5.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                    }
                }
            }
        }

        private void timer7_Tick(object sender, EventArgs e)
        {
            if (this.checkBox5.Checked)
            {
                this.anjian = "模拟按键";
                this.dm.LeftDown();
            }
        }

        private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 2)
            {
                try
                {
                    if (this.comboBox2.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "0-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox2.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox4.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox4.SelectedIndex == 1)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 2)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 3)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 4)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 5)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void comboBox6_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 2)
            {
                try
                {
                    if (this.comboBox2.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "00-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox2.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox4.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox4.SelectedIndex == 1)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 2)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 3)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 4)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 5)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void comboBox7_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 2)
            {
                try
                {
                    if (this.comboBox2.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox2.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox4.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox4.SelectedIndex == 1)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 2)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 3)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 4)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox4.SelectedIndex == 5)
                    {
                        if (this.comboBox5.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void button2_Click_1(object sender, EventArgs e)
        {
            if (this.lblsc.Text == "未知武器")
            {
                MessageBox.Show("请选择武器", "提示");
            }
            else if (this.comboBox4.SelectedIndex > 0 || this.comboBox_0.SelectedIndex > 0)
            {
                MessageBox.Show("保存失败，请把武器1和武器2改成基础镜后保存\r\n倍镜随初始幅度自动添加,无法自行修改的", "提示");
            }
            else
            {
                int selectedIndex;
                decimal value;
                if (this.wuqi == 1)
                {
                    selectedIndex = this.comboBox5.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox6.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox7.SelectedIndex;
                    string key = str + str2 + selectedIndex.ToString();
                    value = this.numtxtfd.Value;
                    string str3 = value.ToString();
                    value = this.numtxtpl.Value;
                    string value2 = str3 + "|" + value.ToString();
                    this.IniWrite(this.comboBox2.Text, key, value2, this.strpath);
                }
                else if (this.wuqi == 2)
                {
                    selectedIndex = this.comboBox9.SelectedIndex;
                    string str4 = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str5 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string key = str4 + str5 + selectedIndex.ToString();
                    value = this.numtxtfd.Value;
                    string str6 = value.ToString();
                    value = this.numtxtpl.Value;
                    string value2 = str6 + "|" + value.ToString();
                    this.IniWrite(this.comboBox_1.Text, key, value2, this.strpath);
                }
                MessageBox.Show("保存当前配置成功", "提示");
            }
        }

        private void comboBox11_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 1)
            {
                try
                {
                    this.lblsc.Text = this.comboBox_0.Text + this.comboBox_1.Text;
                    if (this.comboBox_1.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    if (this.checkBox4.Checked)
                    {
                        if (this.comboBox_1.Text == "M16A4" || this.comboBox_1.Text == "Mini14")
                        {
                            this.checkBox5.Checked = true;
                        }
                        else
                        {
                            this.checkBox5.Checked = false;
                        }
                    }
                    int selectedIndex = this.comboBox9.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox_1.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox_0.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox_0.SelectedIndex == 1)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 2)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 3)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 4)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 5)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                    Application.Exit();
                }
            }
        }

        private void comboBox10_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 1)
            {
                this.lblsc.Text = this.comboBox_0.Text + this.comboBox_1.Text;
                if (this.comboBox_1.Text == "无")
                {
                    this.lblsc.Text = "未知武器";
                }
                if (this.comboBox_0.SelectedIndex == 0)
                {
                    this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                }
                else if (this.comboBox_0.SelectedIndex == 1)
                {
                    if (this.comboBox9.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                    }
                }
                else if (this.comboBox_0.SelectedIndex == 2)
                {
                    if (this.comboBox9.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                    }
                }
                else if (this.comboBox_0.SelectedIndex == 3)
                {
                    if (this.comboBox9.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                    }
                }
                else if (this.comboBox_0.SelectedIndex == 4)
                {
                    if (this.comboBox9.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                    }
                }
                else if (this.comboBox_0.SelectedIndex == 5)
                {
                    if (this.comboBox9.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                    }
                    else
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                    }
                }
            }
        }

        private void comboBox9_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 1)
            {
                try
                {
                    if (this.comboBox_1.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox9.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox_1.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox_0.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox_0.SelectedIndex == 1)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 2)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 3)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 4)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 5)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void comboBox8_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 1)
            {
                try
                {
                    if (this.comboBox_1.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox9.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox_1.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox_0.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox_0.SelectedIndex == 1)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 2)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 3)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 4)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 5)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.wuqi != 1)
            {
                try
                {
                    if (this.comboBox_1.Text == "无")
                    {
                        this.lblsc.Text = "未知武器";
                    }
                    int selectedIndex = this.comboBox9.SelectedIndex;
                    string str = selectedIndex.ToString();
                    selectedIndex = this.comboBox8.SelectedIndex;
                    string str2 = selectedIndex.ToString();
                    selectedIndex = this.comboBox3.SelectedIndex;
                    string text = str + str2 + selectedIndex.ToString();
                    if (text == "-1-1-1")
                    {
                        text = "000";
                    }
                    string text2 = this.IniReadValue(this.comboBox_1.Text, text, this.strpath);
                    int length = text2.IndexOf("|");
                    string value = text2.Substring(0, length);
                    this.numtxtfd.Value = Convert.ToDecimal(value);
                    this.numtxtpl.Value = Convert.ToDecimal(text2.Split('|')[1]);
                    this.resfudu = value;
                    if (this.comboBox_0.SelectedIndex == 0)
                    {
                        this.numtxtfd.Value = Convert.ToDecimal(this.resfudu);
                    }
                    else if (this.comboBox_0.SelectedIndex == 1)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 5m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 4m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 2)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 11m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 8m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 3)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 15m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 4)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 29m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 21m;
                        }
                    }
                    else if (this.comboBox_0.SelectedIndex == 5)
                    {
                        if (this.comboBox9.SelectedIndex == 0)
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 43m;
                        }
                        else
                        {
                            this.numtxtfd.Value = Convert.ToDecimal(this.resfudu) + 31m;
                        }
                    }
                }
                catch
                {
                }
            }
        }

        private void timer8_Tick(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void trackBar1_Scroll(object sender, EventArgs e)
        {
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.comboBox1.SelectedIndex == 0)
            {
                base.Opacity = 1.0;
            }
            else if (this.comboBox1.SelectedIndex == 1)
            {
                base.Opacity = 0.8;
            }
            else if (this.comboBox1.SelectedIndex == 2)
            {
                base.Opacity = 0.5;
            }
            else if (this.comboBox1.SelectedIndex == 3)
            {
                base.Opacity = 0.3;
            }
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            if (this.checkBox1.Checked)
            {
                base.TopMost = true;
            }
            else
            {
                base.TopMost = false;
            }
        }

        private void skinCheckBox7_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void checkBox4_CheckedChanged(object sender, EventArgs e)
        {
        }

        private void checkBox7_CheckedChanged(object sender, EventArgs e)
        {
            Rectangle bounds = Screen.GetBounds(this);
            int width = bounds.Width;
            int height = bounds.Height;
            if (width == 1920 && height == 1080)
            {
                return;
            }
        }
    }
}
